﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using ShevaEngine.Core.Foundation;

namespace ShevaEngine.Core.Modules.ArtificialIntelligence.Pathfinding
{
    /// <summary>
    /// Navigation graph node.
    /// </summary>
    public abstract class NavigationGraphNode
    {
        /// <summary>Connections.</summary>
        public List<NavigationGraphConnection> Connections;


        /// <summary>
        /// Constructor.
        /// </summary>
        public NavigationGraphNode()
        {
            this.Connections = new List<NavigationGraphConnection>();
        }

        /// <summary>
        /// Does node contain location ?
        /// </summary>
        /// <param name="vertex">Vertex.</param>
        /// <returns></returns>
        public abstract Boolean ContainsLocation(Vector3 vertex);

        /// <summary>
        /// Method returns border vertices.
        /// </summary>
        /// <returns>Border vertices.</returns>
        public abstract List<Vector3> GetBorderVertices();
    }
}
